package cn.lystudio.rohmtimeopwide_background_v11.mapper;

import cn.lystudio.rohmtimeopwide_background_v11.entity.po.DepartmentsPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentsPOMapper extends BaseMapper<DepartmentsPO> {
    @Select("SELECT *  " +
            "FROM v_topd_active_list")
    List<DepartmentsPO> getTopDeptActive();

    @Select("SELECT *  " +
            "FROM v_secd_active_list")
    List<DepartmentsPO> getSecDeptActive();
}
